import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
      panelStatus: null,
      client: null,
      mqttStatus: {base_url: '10.145.12.24'},
  },
  mutations: {
    changePanel(state , panelStatus){
      state.panelStatus = panelStatus
    },
    setClient(state, client) {
      state.client = client
    },
    setMqtt(state, mqtt) {
      state.mqttStatus = mqtt
    }
  },
  actions: {
  },
  modules: {
  }
})
